{subtemplate common/header}
<link rel="stylesheet" href="./source/plugin/iweitao_paipai/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="./source/plugin/iweitao_paipai/css/iipaipai.css" />
<script type="text/javascript" src="./source/plugin/iweitao_paipai/js/jquery.js"></script>
<script type="text/javascript" src="./source/plugin/iweitao_paipai/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./source/plugin/iweitao_paipai/js/iipaipai.js"></script>

<div class="headdiv">
	<h3>
		所有拍卖活动:
	</h3>
	<div class="pai2 clearfix">
		<!-- 最新出价 -->
		<h4 class="new_pai pull-left ">
			最新出价：
			<strong class="h2"> {$newest['price']} </strong>元&nbsp;&nbsp;
			<span>
				艺术品:<a href='forum.php?mod=viewthread&tid={$newest["tid"]}' target="_blank">
					{$newest['title']}
				</a>
			</span>
			
		</h4>
		<!-- ./最新出价 -->
		<!-- 商品分类 -->
		<div class="btn-group pull-right">
		  <a class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">
		    显示分类
		    <span class="caret"></span>
		  </a>
		  <ul class="dropdown-menu">
		    <!-- dropdown menu links -->
		   <!--  <li><a href="">分类1</a></li>
		    <li><a href="">分类2</a></li> -->
					<li><a href="plugin.php?id=iweitao_paipai:index" class="pp_category" c-data='1'>全部分类</a></li>
		    <!--{if $mades}-->
			    <!--{loop $mades $k $v}-->
					<li><a href="plugin.php?id=iweitao_paipai:index&made={$k}" class="pp_category" c-data='{$v}'>{$v}</a></li>
			    <!--{/loop}-->
		    <!--{/if}-->
		  </ul>
		</div>
		<!-- ./商品分类 -->
	</div>


	<div class="pull-right cate_order">
		<div class="pull-left">
			<a href="forum.php?mod=post&action=newthread&specialextra=iweitao_paipai&fid={$pp_fid}&cedit=yes&extra=" target="_blank" class="btn">发起竞拍</a>
		</div>
		<!-- 筛选 -->
		<div class=" pull-right sel1">
			<em>查看:</em>
			<a class="<!--{if !(isset($_GET['view']))}-->selected<!--{/if}-->" href="plugin.php?id=iweitao_paipai:index" >全部</a>
			<a class="<!--{if isset($_GET['view']) and $_GET['view']=='my_bid'}-->selected<!--{/if}-->" href="plugin.php?id=iweitao_paipai:index&view=my_bid" >我的出价</a>
			<a class="<!--{if isset($_GET['view']) and $_GET['view']=='my_attention'}-->selected<!--{/if}-->" href="plugin.php?id=iweitao_paipai:index&view=my_attention" >我的关注</a>
			<a class="<!--{if isset($_GET['view']) and $_GET['view']=='show_history'}-->selected<!--{/if}-->" href="plugin.php?id=iweitao_paipai:index&view=show_history" >查看历史交易</a>
		</div>
		<!-- ./筛选 -->
		<!-- 排序 -->
		<div class="pull-right sel2">
			<em>排序:</em>
			<a href="javascript:void(0);" class="first selected" sort='origin' >初始排序</a>
			<a href="javascript:void(0);" sort='origin_price'>起拍价<span class=""></span></a>
			<a href="javascript:void(0);" sort='now_price'>当前价格<span class=""></span></a>
			<a href="javascript:void(0);" sort='now_price'>发布时间<span class=""></span></a>
		</div>
		<!-- ./排序 -->

	</div>
</div>

<div class='corediv' id="loops">
	<!--{loop $array $k $v}-->
		<!-- <a href='forum.php?mod=viewthread&tid={$v["tid"]}'></a> -->
		<div class='loops' pub_time='{$v["pub_time"]}' origin_price='{$v["origin_price"]}' end_price='{$v["price"]}' >
			<div class='topicimg'>
				<a href='forum.php?mod=viewthread&tid={$v["tid"]}'>
				<img height='150' width='210' src='./data/attachment/forum/$v["focus"]' />
				</a>
			</div>
			<div class="pp_des">
				<p>编号:{$v['serial_num']}</p>
				<p><a href='forum.php?mod=viewthread&tid={$v["tid"]}'>{$v['title']}</a></p>
				<p>当前价格:{$v['price']}</p>
				
			</div>

			
			<!--{if $v['status'] == 3}-->
			<img style='position:absolute;top:-100px;left:-110px' src='./source/plugin/iweitao_paipai/image/bg_deal_success.png'>
			<!--{elseif $v['status'] == 2}-->
			<img style='position:relative;top:-180px;left:60px' src='./source/plugin/iweitao_paipai/image/bg_deal_miss.png'>
			<!--{elseif $v['newstatus'] == 'doing'}-->
			
			<!--{/if}-->
			<!-- 关注，出价按钮 -->
			<div class="att_btns">
				<a href="javascript:void(0);" class="pp_attention <!--{if $v['attention'] == 1}-->on_atten<!--{else}-->on_atten_f<!--{/if}-->" atten-data='{$v['gid']}-{$v['attention']}' title="<!--{if $v['attention'] == 1}-->取消关注<!--{else}-->添加关注<!--{/if}-->"></a>
				<a href='forum.php?mod=viewthread&tid={$v["tid"]}' class="on_buy" title="出价" target="_blank"><!-- 出价 --></a>
			</div>
			<!-- ./关注，出价按钮 -->
			<!-- 商品状态 -->
			<div class="pp_status btn disabled">
				{$v['str']}<br/>
				<!-- <strong>{$v['price']} <small>艺汇币</small></strong>
				<p class="text-muted">最新出价：ldm</p> -->
			</div>
			<!-- ./商品状态 -->
		</div>
		
	<!--{/loop}-->

</div>

<!-- 没有内容 -->
<!--{if empty($array)}-->
<div style="color:#333;text-align:center;margin-top:50px;" >
	暂无拍卖活动，敬请期待！
</div>
<!--{/if}-->
<!-- ./没有内容 -->

<!-- 分页 -->
<div id='page' style='margin-top:20px;height:50px;width:100%;'>
	{$page_show}
</div>
<!-- ./分页 -->


<div style="clear:both;"></div>
<div class="cl"></div>
{subtemplate common/footer}